<?php echo $this->Html->css(array('users.login','form'),null,array('inline'=>false));?>
<div id="left-panel">
	<div id="logo"><?php echo $this->Html->link($this->Html->image('logo.png'),'/',array('escape'=>false,'alt'=>'strzyzowianin.pl'))?></div>
	<ul>
		<?php echo $this->element('menu-main')?>
	</ul>
</div>
<div id="right-panel">
	<?php if($session->check("Auth.User.id")){?>
		<h2 class="red"><?php __("Wyloguj się")?></h2>
		<?php echo $session->read("Auth.User.email")?> | 
		<?php echo $html->link(__("Logout",true),array('plugin'=>false,'controller'=>'users','action'=>'logout'),array('class'=>'button'));?>
		<?php }else{?>
		<h2 class="red"><?php __("Zaloguj się")?></h2>

		<?php echo $this->Form->create('User', array('url' => array('controller' => 'users', 'action' =>'login')));?>
			
		<?php echo $this->Form->input('email')?>
		<?php echo $this->Form->input('password')?>
		
		<?php echo $this->Form->end(__('Login',true));?>
		
		<p style="padding: 10px 0px;"><?php echo $html->link($this->Html->image('help.png',array('align'=>'middle','class'=>'user-login-icons','title'=>__('Zapomniałes hasło?',true))).__("Zapomniałes hasło?",true),array('controller'=>'users','action'=>'new_password'),array('escape'=>false));?></p>
		<p><?php echo $html->link($this->Html->image('user.png',array('align'=>'middle','class'=>'user-login-icons','title'=>__('Zarejestruj się!',true))).__("Zarejestruj się!",true),array('controller'=>'users','action'=>'register'),array('escape'=>false));?></p>
	<?php }?>
</div>